package com.gton.lpl;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * @description: Springboot项目启动器
 * @author: GuoTong
 * @createTime: 2021-10-05 15:31
 * @since JDK 1.8 OR 11
 **/
@SpringBootApplication //boot项目启动器
@EnableTransactionManagement //事物
@EnableRedisHttpSession
public class AppMain {
    public static void main(String[] args) {
        /**
        * Description:
         * 数据库连接全部使用mybatis-plus安全加密，加密密匙：
         * 在启动参数 （Program arguments）  --mpw.key=4b57e89bac82a797
        */
        try {
            SpringApplication.run(AppMain.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
